.class public abstract Les/yp0;
.super Ljava/lang/Object;
.source "GeneralDigest.java"

# interfaces
.implements Lorg/bouncycastle/crypto/d;


# instance fields
.field private a:[B

.field private b:I

.field private c:J


# direct methods
.method protected constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x4

    new-array v0, v0, [B

    .line 2
    iput-object v0, p0, Les/yp0;->a:[B

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Les/yp0;->b:I

    return-void
.end method


# virtual methods
.method public a(B)V
    .locals 4

    .line 1
    iget-object v0, p0, Les/yp0;->a:[B

    iget v1, p0, Les/yp0;->b:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Les/yp0;->b:I

    aput-byte p1, v0, v1

    .line 2
    array-length p1, v0

    if-ne v2, p1, :cond_0

    const/4 p1, 0x0

    .line 3
    invoke-virtual {p0, v0, p1}, Les/yp0;->b([BI)V

    .line 4
    iput p1, p0, Les/yp0;->b:I

    .line 5
    :cond_0
    iget-wide v0, p0, Les/yp0;->c:J

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/yp0;->c:J

    return-void
.end method

.method protected abstract a(J)V
.end method

.method public a([BII)V
    .locals 5

    .line 6
    :goto_0
    iget v0, p0, Les/yp0;->b:I

    if-eqz v0, :cond_1

    if-gtz p3, :cond_0

    goto :goto_1

    .line 7
    :cond_0
    aget-byte v0, p1, p2

    invoke-virtual {p0, v0}, Les/yp0;->a(B)V

    add-int/lit8 p2, p2, 0x1

    add-int/lit8 p3, p3, -0x1

    goto :goto_0

    .line 8
    :cond_1
    :goto_1
    iget-object v0, p0, Les/yp0;->a:[B

    array-length v0, v0

    if-gt p3, v0, :cond_3

    :goto_2
    if-gtz p3, :cond_2

    return-void

    .line 9
    :cond_2
    aget-byte v0, p1, p2

    invoke-virtual {p0, v0}, Les/yp0;->a(B)V

    add-int/lit8 p2, p2, 0x1

    add-int/lit8 p3, p3, -0x1

    goto :goto_2

    .line 10
    :cond_3
    invoke-virtual {p0, p1, p2}, Les/yp0;->b([BI)V

    .line 11
    iget-object v0, p0, Les/yp0;->a:[B

    array-length v1, v0

    add-int/2addr p2, v1

    .line 12
    array-length v1, v0

    sub-int/2addr p3, v1

    .line 13
    iget-wide v1, p0, Les/yp0;->c:J

    array-length v0, v0

    int-to-long v3, v0

    add-long/2addr v1, v3

    iput-wide v1, p0, Les/yp0;->c:J

    goto :goto_1
.end method

.method protected abstract b([BI)V
.end method

.method public c()I
    .locals 1

    const/16 v0, 0x40

    return v0
.end method

.method public d()V
    .locals 3

    .line 1
    iget-wide v0, p0, Les/yp0;->c:J

    const/4 v2, 0x3

    shl-long/2addr v0, v2

    const/16 v2, -0x80

    .line 2
    invoke-virtual {p0, v2}, Les/yp0;->a(B)V

    .line 3
    :goto_0
    iget v2, p0, Les/yp0;->b:I

    if-nez v2, :cond_0

    .line 4
    invoke-virtual {p0, v0, v1}, Les/yp0;->a(J)V

    .line 5
    invoke-virtual {p0}, Les/yp0;->e()V

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 6
    invoke-virtual {p0, v2}, Les/yp0;->a(B)V

    goto :goto_0
.end method

.method protected abstract e()V
.end method

.method public reset()V
    .locals 4

    const-wide/16 v0, 0x0

    .line 1
    iput-wide v0, p0, Les/yp0;->c:J

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Les/yp0;->b:I

    const/4 v1, 0x0

    .line 3
    :goto_0
    iget-object v2, p0, Les/yp0;->a:[B

    array-length v3, v2

    if-lt v1, v3, :cond_0

    return-void

    .line 4
    :cond_0
    aput-byte v0, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method
